package com.tszs.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class Uuid {
	public static String getUUID() {  
        return UUID.randomUUID().toString().replace("-", "");  
    }  
	/*public static void main(String[] args) {
		for (int i = 0; i < 1000; i++) {
			
			System.out.println(getTime());
		}
	}*/
	public static String getTime(){
		Date day=new Date();    

		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 

		return df.format(day);   
	}
	public static void main(String[] args) {
System.out.println(getUUID());
		
	}
}
